/**
 * MemberFilter.java
 * @author: liuex
 * 2008-1-17 ����09:11:53
 *
 * note: 
 */
package org.lex.reflect.browsing.model;

import java.lang.reflect.Member;

import org.lex.filter.Filter;


public class MemberFilter implements Filter<Member> {
	private int modifiers = 0;

	public MemberFilter(int modifiers) {
		this.modifiers = modifiers;
	}

	public boolean accept(Member m) {
		int mod = m.getModifiers();
		return 0 != (mod & modifiers);
	}
}
